package net.qiqbframework.eventsourcing.dao;

import com.baomidou.mybatisplus.annotation.TableName;
import net.qiqbframework.persisthanding.dao.BasicEntityPo;
import lombok.*;

import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("qiqb_domain_feedback")
public class DomainEventFeedbackPo implements BasicEntityPo {

    private String id;

    private String eventId;


    /**
     * 处理的服务名称
     */
    @Setter
    private String applicationName;

    @Setter
    private String instanceName;

    /**
     * 订阅状态，0:就绪，1:反馈成功，2:反馈失败
     */
    private String status;

    /**
     * 监听个数
     */
    @Setter
    private String processListenerId;

    private String processId;

    private LocalDateTime processBeginTime;

    private LocalDateTime processEndTime;
    /**
     * 反馈时间
     */
    private LocalDateTime feedbackTime;
    /**
     * 订阅时间。事件创建时间到处理结束时间
     */
    private Long subscriptDuration;

    /**
     * 处理时间，毫秒
     */
    private Long processDuration;

    /**
     * 处理结果
     */
    private String processResultMsg;

}
